package com.hxbd.gxsec_data.service;

import com.alibaba.fastjson.JSONObject;
import com.hxbd.gxsec_data.pojo.FileDO;
import com.hxbd.gxsec_data.pojo.ImgDO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * @author Administrator
 */
public interface NewsService {

    public boolean addNewsData(Map<String,Object> map);

    ImgDO uploadFiles(MultipartFile file,String type);

    List<JSONObject> getAllNews();

    boolean saveUpdateNews(Map<String,Object> map);

    boolean batchNews(Map<String,Object> map);

    boolean batchUploadImg(String url);

    List<JSONObject> getNewsByname(String name);
}
